# #创建集合
# s = {1, 2, 3, 4}
# ss = set('1234')
# print(type(s))
# print(type(ss))
#
# #集合的添加和删除
# s.add(6)
# print(s)
#
# s.pop()
# print(s)
#
# s.remove(4)
# print(s)


# #创建元素
# tuple1 = ()
# print(tuple1)
#
# tuple2 = (1, "a", 3, "hello", 2.2)
# print(tuple2)
#
# tuple3 = (1,)
# print(tuple3)
# print(type(tuple3))


# #使用tuple()函数将其他数据类型转换为元组类型，int（）
# tuple1 = tuple('hello,world')
# print(tuple1)
#
# list1 = ['Python', 'Java', 'C++', 'C']
# tuple2 = tuple(list1)
# print(tuple2)


# t1 = ('W', 'O', 'x', 'i', 'a', 'n', 'g', 'f', 'a', 'n', 'g', 'j', 'i', 'a')
# print(t1)
#
# print(t1[4])
# print(t1[7:11])
# print(t1[-14:-12])
